package oop.ex2.tokenizer;

import oop.ex2.expression.MulOpNode;
import oop.ex2.expression.ExpressionNode;

/**
 * This checks for an multiplication operation: '*'.
 * @author daniel_i_l
 *
 */
public class MulOpAnalyzer extends BinaryOpAnalyzer {
	private static final String PATTERN = "\\*";

	/**
	 * Initialize the search pattern.
	 */
	public MulOpAnalyzer() {
		super(PATTERN);
	}

	@Override
	public ExpressionNode getExpressionNode() {
		return new MulOpNode(_matchedString);
	}

}
